arm: Consistently use proper interworking function returns
authorMartin Storsjö <martin@martin.st>
Thu, 3 Oct 2024 21:30:24 +0000 (00:30 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 21 Feb 2025 12:16:27 +0000 (13:16 +0100)
commit83dc3371f57b76b19432776926289c47f3cb10ad
treeca3e218db12f447f3cad8d168f8fe29b0f58d5a4
parent979dcadb63d404be0d6d259f3a268f5a399437cb
arm: Consistently use proper interworking function returns

Use "bx lr", or "pop {lr}", which do proper mode switching
between thumb and arm modes. A plain "mov pc, lr" does not switch
from thumb mode to arm mode (while in arm mode, it does switch
mode for a thumb caller).

This is normally not an issue, as CONFIG_THUMB only is enabled if
the C compiler defaults to thumb; but stick to patterns that can
do mode switching if needed, for consistency.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 77e6293735262b20a86b5047b77991a86cf4e9e1)

Gbp-Pq: Name 0008-arm-Consistently-use-proper-interworking-function-re.patch
libswresample/arm/resample.S
libswscale/arm/hscale.S
libswscale/arm/output.S
libswscale/arm/yuv2rgb_neon.S